home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
(A)TB
/
(A)TBF.ADF
/
CLI_only
/
ViewDir
/
viewdir.lzh
/
ViewD.notes
< prev
next >
Wrap
Text File
|
1990-06-12
|
1KB
|
24 lines
ViewDir - A Directory Reading program for your CLI C: directory
PRINCIPAL REASON FOR revision, April 1990:
The agony was in the conceptualization rather than the coding.
Reasoning went through these stages:
--A directory name would cause contents to be seen.
--Why not allow a file name, to examine specific file?
--Version 1 didn't give enough detail on specific file.
--Whoa! If you may type a file name for details on the
file ... you should get (total) details on the directory,
as well as "contents" detail. If you name an empty directory,
you'd otherwise get <nothing>.
--Add indentation to make the DIR summary line stand out.
--Program doesn't use pattern matching, but SPAT might
do the job. Oops: it doesn't, until following are added.
-> Permit file name to be enclosed in quotes. Originally,
the program just took the command line tail, and didn't like
you to use quotes. Now, either way will work.
-> SPAT likes to throw a bunch of spaces at the end of
CLI command lines. Extra parsing to skim them.
Some of the above is mechanics, some re-conceptualization.
It should be no surprise that, with the above modifications,
the program got smaller.
--Jim B